package com.qfedu.common.core.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

@Data
@TableName("inventory_detail")
public class InventoryDetail {
    /**
     * 库存明细id
     */
    @TableId(type = IdType.AUTO)
    private Integer inventoryDetailId;

    /**
     * 库存id --> 库存表
     */
    private Integer inventoryId;

    /**
     * 库存货品id --> 货品表
     */
    private Integer freightId;

    /**
     * 库存数量（当前仓库的这个库位的存货数量）
     */
    private Integer inventoryDetailNum;

    /**
     * 库存仓库id --> 仓库表
     */
    private Integer warehouseId;

    /**
     * 库存库位id --> 库位表
     */
    private Integer warehousePlaceId;

    /**
     * 附件id --> 附件表
     */
    private Integer attachmentId;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
}